package com.dongdongshop.service.user;


import com.dongdongshop.pojo.user.TbAddress;
import com.dongdongshop.pojo.user.TbUser;

import java.util.List;

public interface UserService {
    //发送验证码
    String sendMessage(String phoneNumber);

    //根据用户名查询用户
    TbUser getUserByUserName(String username);

    //增加用户
    void addUser(TbUser user);

    Boolean checkCodeByPhone(String phone, String code);

    TbUser getByUser(Long id);

    List<TbUser> getByName(String username);

    void updatePwdandSalt(TbUser user);
}
